import request from '@/utils/request'

const createModule = (params) => {
    return request.post('/api/v2/expo-module/create/parent', params, {
        headers: { 'Content-Type': 'application/json' }
    })
}
const getCreateImage = () => {
    return request.get('/api/v1/expo-module/get-create-image')
}
const editModule = (uid, params) => {
    return request.patch(`/api/v1/expo-module/edit/${uid}`, params, {
        headers: { 'Content-Type': 'multipart/form-data' }
    })
}


export default {
    createModule,
    getCreateImage,
    editModule
}
